package com.ruoyi.orderEat.domain;

import java.io.Serializable;
import java.util.Date;

/**
    * 订单商品关联表
    */
public class OrderAssociated implements Serializable {
    /**
    * 订单关联ID
    */
    private Long orderAssociatedId;

    /**
    * 订单ID
    */
    private Long orderId;

    /**
    * 商品ID
    */
    private Long shopId;

    /**
    * 口味规格ID
    */
    private String flavourId;

    /**
    * 购买数量
    */
    private Integer count;

    /**
    * 创建者
    */
    private String createBy;

    /**
    * 创建时间
    */
    private Date createTime;

    /**
    * 更新者
    */
    private String updateBy;

    /**
    * 更新时间
    */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getOrderAssociatedId() {
        return orderAssociatedId;
    }

    public void setOrderAssociatedId(Long orderAssociatedId) {
        this.orderAssociatedId = orderAssociatedId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getFlavourId() {
        return flavourId;
    }

    public void setFlavourId(String flavourId) {
        this.flavourId = flavourId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderAssociatedId=").append(orderAssociatedId);
        sb.append(", orderId=").append(orderId);
        sb.append(", shopId=").append(shopId);
        sb.append(", shopSkuId=").append(flavourId);
        sb.append(", count=").append(count);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}